/*=============================================================================
#    The element-comm is a tentative program used to test our ideas.           
#                       Copyright (C)  bgao                                    
#
#     This program is free software; you can redistribute it and/or            
#      modify it under the terms of the GNU General Public License             
#     as published by the Free Software Foundation; either version 2           
#         of the License, or (at your option) any later version.               
#
#     This program is distributed in the hope that it will be useful,          
#    but WITHOUT ANY WARRANTY; without even the implied warranty of           
#     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the            
#             GNU General Public License for more details.                    
#
#    You should have received a copy of the GNU General Public License        
#     along with this program; if not, write to the Free Software             
#      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,             
#                       MA  02110-1301, USA.                                  
#==============================================================================
# $Id$ 
#
# $Author$ 
#
# $Revision$ 
#
# $Date$ 
#
# Description: 
#
=============================================================================*/
#ifndef _HOPEN_SYS_TYPES_H
#define _HOPEN_SYS_TYPES_H

#define	NBBY	8		/* number of bits in a byte */


#ifndef _BSDTYPES_DEFINED
typedef	unsigned char	u_char;
typedef	unsigned short	u_short;
typedef	unsigned int	u_int;
typedef	unsigned long	u_long;
#define _BSDTYPES_DEFINED
#endif

#ifndef SIZET_DEFINED
#define SIZET_DEFINED
typedef signed int    size_t;
typedef signed long   ssize_t;
#endif

#ifndef ERRORT_DEFINED
#define ERRORT_DEFINED
typedef int error_t;
#endif

typedef unsigned long	dev_t;
typedef unsigned long   ino_t;

typedef unsigned int	mode_t;

typedef unsigned int	nlink_t;
typedef unsigned int	uid_t;
typedef unsigned int	gid_t;

typedef signed long	off_t;

typedef unsigned short	blksize_t;
typedef unsigned long	blkcnt_t;

typedef unsigned long	clock_t;
typedef signed long	time_t;
typedef unsigned long	timer_t;
typedef unsigned long	suseconds_t;

typedef unsigned long	fsblkcnt_t;
typedef unsigned long	fsfilcnt_t;

typedef int pid_t;

typedef long useconds_t;

typedef	long	daddr_t;
typedef	char *	caddr_t;

#include "machine/_types.h"
#include "sys/param.h"

#ifndef __int8_t_defined
#define __int8_t_defined
typedef	signed char   int8_t;
typedef	signed short  int16_t;
typedef	signed long   int32_t;
typedef	signed long long  int64_t;
#endif

#ifndef __uint8_t_defined
#define __uint8_t_defined
typedef unsigned char  uint8_t;
typedef unsigned short uint16_t;
typedef unsigned long  uint32_t;
typedef unsigned long long uint64_t;
#endif

typedef	uint8_t   u_int8_t;
typedef	uint16_t  u_int16_t;
typedef	uint32_t  u_int32_t;
typedef	uint64_t  u_int64_t;

#endif	//_HOPEN_SYS_TYPES_H
